/**
 * Created by wangwei on 18-8-27.
 */
import Vue from 'vue';
import Vuex from 'vuex';
// import * as actions from './actions';
// import * as mutations from './mutations';
// import * as getters from './getters';
// import state from './rootState';
Vue.use(Vuex);
const store = new Vuex.Store({
  state: {
    productList: [],
    needInit: true
  },
  getters: {

  },
  actions: {

  },
  mutations: {
    getProductList (state, productList) {
      state.productList = productList
    },
    setNeedInit (state, bool) {
      state.needInit = bool
    }
  }
});
export default store;
